﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace QuickDial_5_0
{
    /// <summary>
    /// 窗体帮助类
    /// </summary>
    /// <remarks>2015-8-12</remarks>
    class FormHelper
    {
        /// <summary>
        /// 打开窗体
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="act"></param>
        /// <remarks>2015-8-12</remarks>
        public static void Show<T>(Action<T> act=null) where T :Form,new(){
            T t = new T();
            t.Icon = ARL.apps_48;
            t.StartPosition = FormStartPosition.CenterScreen;
            if (null != act)
            {
                act(t);
            }
            t.Show();

        }
    }
}
